@include('home.UserCenter.header')
        <!-- ngView: -->
        <div ng-view="" role="main" class="ng-scope">
            <div class="profile-container container" profile-container="" page-name="changepassword"
            page-title="设置密码">
                <div class="clearfix">
                    <div class="location" ng-style="{visibility: geohash ? &#39;&#39; : &#39;hidden&#39;}"
                    role="navigation" location="">
                        <span>
                            当前位置 : {{session('dizhi')}}
                        </span>
                       
                        <span ng-transclude="">
                    
                            <span class="ng-binding ng-scope">
                                添加地址
                            </span>
                        </span>
                    </div>
                    <div search-input="">
                    </div>
                </div>
                @include('home.UserCenter.leftList')
                <div class="profile-panel" role="main">
                    <!-- ngIf: pageTitleVisible -->
                    <h3 ng-if="pageTitleVisible" class="profile-paneltitle ng-scope">
                        <span ng-bind="pageTitle" class="ng-binding">
                           编辑地址 
                        </span>
                        <span class="subtitle ng-binding" ng-bind-html="pageSubtitle | toTrusted">
                        </span>
                    </h3>
                    <!-- end ngIf: pageTitleVisible -->
                    <div class="addressform" style="margin:40px 0px 0px 80px">
                        <form action="/modify/update" method="post">
                            <div>
                                @if (count($errors) > 0)
                                    @foreach ($errors->all() as $error)
                                    <ul class="col-sm-10" style="margin-top:5px">
                                        <li class="form-control errors" style="color:red;margin:0px 0px 5px 90px;">{{ $error ? $error : (session::get('errors')) }}</li>
                                    </ul>
                                    @endforeach
                                </div>
                                @endif
                                @foreach($address as $k)
                                <div class="addressformfield">
                                    {{csrf_field()}}
                                    <input type="hidden" name="id" value="{{$k->id}}">
                                    <label>姓名</label>
                                    <input type="text" name="name" value="{{$k->name}}" placeholder="请输入您的姓名">
                                    <!-- <div class="addressformfield-hint">
                                        <span></span>
                                    </div> -->
                                </div>
                                <div class="addressformfield sexfield">
                                    <label>性别</label>
                                    <div style="margin-bottom: 13px;">
                                        @if($k->sex == '先生')
                                        <input id="sexfield-1-male" checked name="sex" type="radio" value="先生">
                                        @else
                                        <input id="sexfield-1-male" name="sex" type="radio" value="先生">
                                        @endif
                                        <label for="sexfield-1-male">先生</label>

                                        @if($k->sex == '女士')
                                        <input id="sexfield-1-female" checked type="radio" name="sex" value="女士">
                                        @else
                                        <input id="sexfield-1-female" type="radio" name="sex" value="女士">
                                        @endif
                                        <label for="sexfield-1-female">女士</label>
                                    </div>
                                    <div class="addressformfield">
                                        <label>位置</label>
                                        <input name="place" value="{{$k
                                        ->city}}" placeholder="城市、地区">
                                        <div class="addressformfield-hint">
                                            <span></span>
                                        </div>
                                    </div>
                                    <div class="addressformfield">
                                        <label>详细地址</label>
                                        <input name="detail" value="{{$k->content}}" placeholder="街道、门牌号">
                                        <div class="addressformfield-hint">
                                            <span></span>
                                        </div>
                                    </div>
                                    <div class="addressformfield phonefield">
                                        <label>手机号</label>
                                        <input name="phone" value="{{$k->phone}}" placeholder="请输入您的手机号">
                                        <div class="addressformfield-hint">
                                            <span></span>
                                        </div>
                                    </div>
                                </div>
                                @endforeach
                                <div class="addressform-buttons">
                                    <button>保存</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
@include('home.UserCenter.footer')